package com.ruoyi.api.repository;

import com.ruoyi.api.domain.GuidEntity;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.data.mongodb.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.Optional;

@Repository
public interface GuidRepository extends MongoRepository<GuidEntity, Object> {


    @Query("{ id: ?0}")
    Optional<GuidEntity> findById(ObjectId id);
}
